package com.suredy.base.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.suredy.base.model.Todo;
import com.suredy.core.service.BaseSrvWithEntity;

@Service("TodoSrv")
public class TodoSrv extends BaseSrvWithEntity<Todo> {

	public List<Todo> getTodoList() {
		return this.readByEntity(null);
	}

	public void addTodo(Todo todo) {
		this.saveOrUpdate(todo);
	}

}
